/* c:\Users\Abbas Satwr\Desktop\مشاريعي\عقاري\real_estate.css*/
:root {
    --primary-color: #8A2BE2;       /* اللون البنفسجي الرئيسي */
    --secondary-color: #FFFFFF;     /* اللون الأبيض الثانوي */
    --accent-color: #FFD700;        /* اللون الذهبي للتأكيدات */
    --dark-color: #2A0944;          /* بنفسجي داكن للخلفيات */
    --gradient-overlay: linear-gradient(45deg, rgba(138,43,226,0.9), rgba(42,9,68,0.8));
    --font-heading: 'El Messiri', sans-serif;
    --font-body: 'Tajawal', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* الأساسيات */
body {
    font-family: var(--font-body);
    background: var(--secondary-color);
    color: var(--dark-color);
    line-height: 1.8;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

/* شريط التنقل */
.main-nav {
    background: rgba(255,255,255,0.97) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    padding: 0.5rem 0;
}

.nav-brand img {
    width: 90px;
    transition: var(--transition);
}

.nav-link {
    font-size: 1.1rem;
    color: var(--dark-color) !important;
    position: relative;
    margin: 0 1rem;
    padding: 0.5rem 0 !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
    left: 0;
}

/* قسم البطل */
.hero-section {
    
    height: 90vh;
    margin-top: 76px;
    position: relative;
    overflow: hidden;

    margin: 0;
    padding: 0;
    background-color: #f0f0f0; /* لون احتياطي */
    background-image: url("background.webp.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-overlay);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--secondary-color);
}

.hero-search-box {
    background: rgba(255,255,255,0.9);
    border-radius: 30px;
    padding: 2rem;
    box-shadow: var(--shadow);
}

/* فلترة العقارات */
.filter-section {
    background: var(--secondary-color);
    border-radius: 20px;
    padding: 2rem;
    margin-top: -50px;
    box-shadow: var(--shadow);
    position: relative;
    z-index: 3;
}

/* بطاقات العقارات */
.property-card {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
    background: var(--secondary-color);
    position: relative;
}

.property-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

.property-image {
    height: 300px;
    object-fit: cover;
    transition: var(--transition);
}

.property-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--primary-color);
    color: var(--secondary-color);
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    font-size: 0.9rem;
}

/* قسم الوكلاء */
.agent-card {
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
}

.agent-card:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow);
}

/* حاسبة التمويل */
.calculator-section {
    background: var(--dark-color);
    color: var(--secondary-color);
    border-radius: 20px;
    padding: 3rem;
}

/* التكيف مع الجوال */
@media (max-width: 768px) {
    .hero-section {
        height: 70vh;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .filter-section {
        margin-top: -30px;
        padding: 1rem;
    }
}

/* الرسوم المتحركة */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade {
    animation: fadeInUp 0.8s ease-out;
}
/* أنماط إضافية للصفحة الجديدة */
.bg-light {
    background: rgba(255,255,255,0.95) !important;
    backdrop-filter: blur(10px);
}

.shadow {
    box-shadow: var(--shadow);
}

.rounded-3 {
    border-radius: 20px;
}

.form-label {
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.form-control, .form-select {
    border: 2px solid var(--primary-color);
    border-radius: 15px;
    padding: 0.75rem 1.25rem;
    transition: var(--transition);
}

.form-control:focus, .form-select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(138,43,226,0.25);
}
/* أنماط الصفحة الجديدة */
.guide-card {
    transition: var(--transition);
    border: 2px solid rgba(138,43,226,0.1);
}

.guide-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.standard-card {
    background: rgba(255,255,255,0.9);
    border-radius: 15px;
    transition: var(--transition);
}

.standard-card:hover {
    transform: scale(1.05);
}

.offer-card {
    border: 2px solid var(--primary-color);
    overflow: hidden;
    transition: var(--transition);
}

.offer-image {
    height: 250px;
    object-fit: cover;
    filter: brightness(0.9);
}

.offer-content {
    background: linear-gradient(to top, rgba(255,255,255,1) 60%, rgba(255,255,255,0.8));
}

.offer-badge {
    position: absolute;
    top: 15px;
    left: -30px;
    background: var(--accent-color);
    color: var(--dark-color);
    padding: 0.5rem 2rem;
    transform: rotate(-45deg);
    font-weight: 700;
    z-index: 2;
}

@media (max-width: 768px) {
    .offer-badge {
        left: -40px;
        padding: 0.5rem 1.5rem;
    }
}
/* أنماط صفحة الوكلاء */
.agent-filter {
    margin-top: 100px;
    border: 2px solid rgba(138,43,226,0.1);
}

.enhanced-agent-card {
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
}

.enhanced-agent-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.agent-header {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.agent-photo {
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.agent-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(42,9,68,0.9) 20%, transparent);
}

.agent-social {
    position: absolute;
    bottom: 15px;
    left: 15px;
    font-size: 1.2rem;
}

.agent-social a {
    transition: var(--transition);
}

.agent-social a:hover {
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .agent-header {
        height: 200px;
    }
    
    .agent-filter .col-md-4 {
        margin-bottom: 15px;
    }
}
/* إدارة الصور */
.property-image {
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 15px 15px 0 0;
}

.property-image:hover {
    transform: scale(1.05);
}

.agent-card img {
    border: 3px solid var(--primary-color);
    padding: 3px;
    transition: all 0.3s ease;
}

.agent-card:hover img {
    transform: rotate(5deg) scale(1.1);
}

#modalImage {
    max-height: 400px;
    object-fit: contain;
    border-radius: 15px;
}

/* تحسينات الأداء */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img[loading="lazy"].loaded {
    opacity: 1;
}
.navbar-brand-logo {
    transition: transform 0.3s ease;
    border-radius: 8px;
  }
  
  .navbar-brand-logo:hover {
    transform: rotate(-5deg) scale(1.1);
  }